<script setup>
defineProps({
  bannerList:{
    type:Array,
    default:()=>[]
  }
})
</script>

<template>
<div class="banner">
  <el-carousel height="200px" motion-blur>
    <el-carousel-item v-for="item in bannerList" :key="item">
      <el-image :src="bannerList?.url?bannerList.url:'src/static/test.png'" fit="contain" style="width: 100%;height: 100%"></el-image>
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<style scoped lang="scss">
.banner{
  background-color: #f1f1f1;
  width: 100%;
  height: 200px;
  //底部阴影
   box-shadow: 0 0 1px #f1f1f1;
}
</style>